package edu.hunau.demo;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.util.Arrays;

/**
 * @author hb
 * @date 2022-11-29 17:13:56
 */
public class MyInvocationHandler implements InvocationHandler {
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("正在执行的方法:"+method.getName());
        if(args!=null){
            System.out.println("参数列表:" + Arrays.toString(args));
        }
        return null;
    }
}
